package com.cino.demos.mapper.comment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cino.demos.entity.comment.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    @Select("select * from comment")
    List<Comment> list();

    @Select("select * from comment where id = #{id}")
    Comment selectById(Integer id);

    void insertEntity(Comment comment);

    void update(Comment comment);

    void deleteById(Integer id);
}
